<template>
	<view style="padding-top: 100rpx;">
		<view class="text-area">
			<text>输入值：</text><input type="text" v-model="title" style="color:red;"/>
		</view>
		<view class="text-area">
			<text>回传值：</text><input type="text" :value="callBackValue" style="color:black;"/>
		</view>
		<ComA :intent="title"></ComA>
		<ComB @callBackFun="callBack"></ComB>
	</view>
</template>

<script>
	import ComA from '../../../../components/ComA.vue'
	import ComB from '../../../../components/ComB.vue'
		export default {
			components:{
				ComA,
				ComB
			},
		data() {
			return {
				title:"",
				callbackValue:""
			}
		},
		methods: {
			callBack(msg){
				console.warn("----index---callBack--->"+msg);
				this.callBackValue=msg;
			}
		}
	}
</script>

<style>

</style>
